
//------------------------------------------
// FIGURE 1: Member Level Summary Statistics 
//------------------------------------------

clear
use staff_turned_lobbyist.dta

gen repstaff = .
replace repstaff = 1 if demstaff == 0

by firstyear, sort: egen numstaff = count(core_person_id)
by firstyear, sort: egen numstaffdem = sum(demstaff)
by firstyear, sort: egen numstaffrep= sum(repstaff)
by firstyear, sort: gen tt = 1 if _n == 1

twoway (line numstaffdem firstyear if tt == 1, xtitle("First Year Appeared in Lobbying Report") ytitle("Number of Staff-turned-Lobbyists") lwidth(thick) lcolor(black) graphregion(color(white)) legend(off) ylab(0(50)200, nogrid)) ///
(line numstaffrep firstyear if tt == 1, lwidth(thick) lpattern(dash) lcolor(gs5) text(52 2005 "Democratic Staff") text(175 2004.5 "Republican Staff", color(gs5)))
